<div class="tl_loader">
    <img src="<?php echo $this->urlbase.'/public/media/images/loader.gif';?>" />
</div>

<div class="tl_descanco"></div>

<div class="tl_menu">
    <ul>
        <?php /*
        <li><div class="content_img">
                <img src="<?php echo $this->urlbase;?>/public/media/images/icone.png" />
                <div>Texto Texto Texto</div>
            </div></li>
        <li><div class="content_img"><img src="<?php echo $this->urlbase;?>/public/media/images/icone.png" /></div></li>
        <li><div class="content_img"><img src="<?php echo $this->urlbase;?>/public/media/images/icone.png" /></div></li>
        <li><div class="content_img"><img src="<?php echo $this->urlbase;?>/public/media/images/icone.png" /></div></li>
        <li><div class="content_img"><img src="<?php echo $this->urlbase;?>/public/media/images/icone.png" /></div></li>
        <li><div class="content_img"><img src="<?php echo $this->urlbase;?>/public/media/images/icone.png" /></div></li>
        */?>
        <?php 
        foreach($this->result as $row){
            $img = glob('public/upload/pagina/'.$row['PAG_ID'].'_tmn.*');
            if(isset($img[0]))$img = $img[0];
            else $img = '';
        ?>
            <li style="background-color: <?php echo $row['PAG_CORBAC']; ?>">
                <a href="<?php echo $this->urlbase.'/index/pagina/id/'.$row['PAG_ID'];?>">
                    <div class="content_img">
                        <img src="<?php echo $this->urlbase.'/'.$img;?>" />
                        <div class="ttl"><?php echo $row['PAG_NOM']; ?></div>
                    </div>
                </a>
            </li>
        <?php } ?>
    </ul>   
</div>